import user from '../../api/login'

const state = {
  // 广告列表
  userList: []
}

const mutations = {
  // 设置广告列表
  USER_REGIST(state, list) {
    state.userList = list
  }
}

const actions = {

  /**
   * 获取广告列表
   */
  async regist({ state, commit }, params) {
    // if (state.advertiseList && state.advertiseList.length > 0) {
    //   return state.advertiseList
    // }
    console.log(user);
    // let res = await user.regist(params)
    // console.log(res);
    // commit('USER_REGIST', res.data.data.data)
    // return res
  }
}

export default {
  namespaced: true,
  state,
  actions,
  mutations
}
